package com.xin.di.uav.applet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xin.di.uav.applet.po.Dictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 设置字典表 Mapper 接口
 * </p>
 *
 * @author LTQ
 * @since 2023-09-04
 */
@Mapper
public interface DictionaryMapper extends BaseMapper<Dictionary> {

    @Select({"<script>",
            "select str_value from dictionary where enable=1 and subject=#{subject} limit 1 ",
            "</script>"})
    String selJsonString(@Param("subject") String subject);





}
